<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Ajax extends CI_Controller {

    /**
     * Index
     */
    public function index()
	{	    	    
	    $stmt = mssql_init('getCityList');
	    $res = mssql_execute($stmt);
	    $rows = mssql_get_all($res);

	    
	    mssql_free_statement($stmt);
	    //$result = mssql_fetch_assoc();  
 
	    $data['rows'] = $rows;	    
		$this->load->view('city', $data);
	}

}